 {literal}
 <script>
     $(document).ready(function() {
         url = $("#url").val();
         $('.edit').editable(url, { 
          indicator : "saving ...",
          cssclass  : "inherit",
          type      : "text",
          submit    : "OK",
          cancel    : "Cancel",
          tooltip   : "Cliquer pour renommer ...",
          callback : function(value, settings) {
              res = value.split("__");
              $("#"+res[0].substring(1)).html(res[1].substring(0,res[1].length -1));
         }
      });
     });
 </script>
 {/literal}
 <input type="hidden" id="url" value="{jurl 'annonce~BoCategEquipement:ajaxUpdateCategName'}" />
 <table style="width:240px" id="rounded-corner" cellpadding="0" cellspacing="3" summary="2007 Major IT Companies' Profit">
                       {foreach $categorie as $item}
                        <tr>
                        <td style="padding:5px;">   
                            <label class="little"><p  class="edit" style="display:inline;" id="{$item->id_categ_equipement}">{$item->lib_categ_equipement}</p></label>
                            {if $item->NotSupprimable}
                            <a class="det3" title='Editer' href="{jurl 'annonce~BoEquipement:liste', array('iId'=>$item->id_categ_equipement),false}">{image $j_basepath.'design/back/img/ico_detail.png',array('title'=>'','alt'=>'','border'=>0)}</a>
                            {else}
                             <a href="{jurl 'annonce~BoEquipement:editer',array('idCateg'=>$item->id_categ_equipement)}">Ajouter </a>
                             <a href="{jurl 'annonce~BoCategEquipement:supprimer', array('iId'=>$item->id_categ_equipement)}" class="ask"><img src="{$j_basepath}design/back/img/user_logout.png" alt=""></a> 
                            {/if}
                        </td>
                       </tr>
                       {/foreach}
</table>
